
<!DOCTYPE html>
<html>

<head>
   
    
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>经销商进销存报告汇总人管理</title>

{include file="Public/header"}

<link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
<link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
<style>

</style>

</head>

<body class="white-bg" style="padding: 3px;">
    <div class="page-heade">
       <h2 class="title_color text-center">待阅流程任务</h2>
    </div>
    <form action="" class="form-inline" id="form1">
        <table class="table table-bordered bud_hei">
            <tr>
                <td>业务类型：
                    <select class="form-control select" name="ywlx">
                        <option value="">全部</option>
                        {volist name="ywlx" id="row"}
                        <option value="{$row.id}" {if isset($ywlx)&&$ywlx==$row.id}selected{/if}>{$row.title}</option>
                        {/volist}
                    </select>
                    <span class="lr_5"></span>关键字：<input type="text" name="keword" value="{if isset($keyword)}{$keyword}{/if}" class="form-control"><span class="lr_5"></span> <button class="btn-sm btn-info btn">查询</button><span class="lr_5"></span><button class="btn-sm btn-info btn" type="reset" id="reset">清空查询条件</button>
                    </td>
            </tr>
        </table>
    </form>
    <table class="table table-striped table-bordered table-hover bud_hei text-center aprovalSystemTable" style="width: 100%;">
        <tr class="info">
            <th class="text-center">No.</th>
            <th class="text-center">业务类型</th>
            <th class="text-center" style="width: 25%">任务名称及编号</th>
            <th class="text-center">部门/申请人</th>
            <th class="text-center">状态</th>
            <th class="text-center"><span class="up" style="color: blue">到达时间↑</span></th>
            <th class="text-center">操作</th>
        </tr>
        <tbody>
            {volist name="data" id="row" key="k"}
            <tr>
                <td>{$k}</td>
                <td>{$row.type}</td>
                <td class="text-left"><a href="javascript:;" class="detail">{$row.rwmcjbh}</a></td>
                <td>{$row.department}/{$row.sqr}</td>
                <td>{$row.status}</td>
                <td>{$row.sendTime}</td>
                <td>

                    {if $row.ywlx==1}
                    <a href="{:url('process2',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}">处理</a>&nbsp;
                    {elseif $row.ywlx==2}
                    <a href="{:url('noformalbacklogdetail2',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}">处理</a>&nbsp;
                    {elseif $row.ywlx==3}
                    <a href="{:url('formalbacklogdetail2',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}">处理</a>&nbsp;
                    {/if}
                    <a href="{:url('workflowchart',['id'=>$row.myId])}" class="J_menuItem">查看流程图</a></td>
            </tr>
            {/volist}
    </tbody>
    </table>
    <h5 class="text-center"  style="font-size: 13px;font-weight: 500">
       {$page}
    </h5>


<!-- 全局js -->
{include file="Public/footer"}

<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script>
    $(function () {
        $('body').on('click','input[type=text]',function () {
            this.select()
        })
    })
</script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
<script>
    $(document).ready(function () {
$(".detail").click(function(){
     layer.open({
                type: 2,
                title: '修改提醒邮箱',
                 area: ['1280px', '700px'],
                fixed: false, //不固定
                maxmin: true,
                content: '{:url("Jingxiaomubiao/detail")}'
            });
            return false

})
/*修改*/
          $(".modify").click(function () {
             layer.open({
                type: 1,
                title: '修改提醒邮箱',
                 area: ['700px', '500px'],
                fixed: false, //不固定
                maxmin: true,
                content: '<div class="ibox-content"><form class="form-horizontal m-t" id="signupForm">  <div class="form-group"><label class="col-sm-3 control-label">发件人邮箱<span class="colorRed">*</span>：</label><div class="col-sm-8"><input id="username" name="username" class="form-control" type="text" aria-required="true" aria-invalid="true" class="error"></div></div><div class="form-group"><label class="col-sm-3 control-label">密码<span class="colorRed">*</span>：</label><div class="col-sm-8"><input id="password" name="password" class="form-control" type="password"></div></div>   <div class="form-group"><label class="col-sm-3 control-label">SMTP服务器<span class="colorRed">*</span>：</label><div class="col-sm-8"><input id="curl" type="url" class="form-control" name="url"></div></div>  <div class="form-group"><div class="col-sm-4 col-sm-offset-3"><button class="btn btn-primary" type="submit">确定</button><span class="lr_5"></span><button class="btn btn-warning">取消</button></div></div></form></div>'
            });
            return false

        });

        $('#reset').on('click',function () {
            $("#form1 input").each(function(){
                $(this).val('');
            });
            $("#form1 select").each(function(){
                $(this).val('');
            });
            $('#form1').submit()
            return false
        })
        //删除
        $('.shanchu').click(function () {
            var link = $(this).attr('href')
            swal({
                title: "您确定要删除这条信息吗",
                text: "删除后将无法恢复，请谨慎操作！",
                type: "warning",
                showCancelButton: true,
                confirmButtonColor: "#DD6B55",
                confirmButtonText: "删除",
                closeOnConfirm: false
            }, function (isConfirm) {
                if(isConfirm){
                    $.ajax({
                        'type':'post',
                        'url':link,
                        'dataType':'json',
                        'success':function (data) {
                            if(data.success){
                                location.reload()
                            }else
                                swal(data.msg, "", "error");
                        }
                    })
                }

            });
            return false
        });
    })
$(document).on("click",".del_this",function() {
      
                swal({
                            title: "提示",
                            text: "您真的要删除么？",
                            type: "warning",
                            showCancelButton: true,
                            confirmButtonColor: "#FF3333",
                            confirmButtonText: "确定",
                            cancelButtonText: "取消",
                            closeOnConfirm: true
                        })
                        // function (isConfirm) {
                        //   if (isConfirm) {
                        //    //alert(cid);
                        //     $.post("{:url('Productsseries/dropser')}",{sid:sid},function(re){
                        //       //alert(re);
                        //         if(re==1){
                        //             swal({
                        //             title: "完成",
                        //             text:  "系列已删除",
                        //             type: "success"
                        //             },function(){
                        //                 location.href='{:url("Productsseries/series")}';
                                        
                        //             });
                        //         }else{
                        //              swal({
                        //             title: "错误",
                        //             text:  "系统繁忙请稍后再试",
                        //             type: "warning"
                        //             });
                        //         }
                        //     })
                        // }
                        // })
        });
</script>
</body>

</html>